
package ig.util;

import java.io.Serializable;
import java.rmi.server.UID;

public class KeyGenerator implements Serializable {
    
    private static KeyGenerator instance;
    
    static {
        instance = new KeyGenerator();
    }
    
    private KeyGenerator() {
    }
    
    public static KeyGenerator getInstance() {
        return instance;
    }
     
    // Create and return a new (unique) key.
    // [PENDING]
    public Integer getNewKey() {
        return new UID().hashCode();
    }
}
